<template>
  <z-table name="iu2b21id">
    <template #rulesSlot="">
      <z-form-items name="rules" :fields="fields" />
    </template>
  </z-table>
</template>

<script>
import configs from './.lowcode/configs'

export default {
  name: 'p-iu2b21id',
  provide: { configs },
  data() {
    return {
      fields: [
        {
          label: "开头字母",
          name: 'header',
        },
        {
          label: "日期格式",
          name: 'date',
          type: "radiobox",
          default: "3",
          required: true,
          options: [
            {
              label: "年月日",
              value: "3"
            },
            {
              label: "年月",
              value: "2"
            },
            {
              label: "年",
              value: "1"
            }
          ],
        },
        {
          label: "流水号位数",
          name: 'number',
          type: 'select',
          default: "3",
          required: true,
          options: [
            {
              label: "2位",
              value: "2"
            },
            {
              label: "3位",
              value: "3"
            },
            {
              label: "4位",
              value: "4"
            },
            {
              label: "5位",
              value: "5"
            },
            {
              label: "6位",
              value: "6"
            }
          ],
        },
        {
          label: "流水号重置",
          name: 'resetRule',
          type: "radiobox",
          default: "3",
          required: true,
          options: [
            {
              label: "按年重置",
              value: "1"
            },
            {
              label: "按月重置",
              value: "2"
            },
            {
              label: "按日重置",
              value: "3"
            }
          ],
        },
        {
          label: "连接符",
          name: 'connector',
          type: 'select',
          default: "0",
          required: true,
          options: [
            {
              label: "不使用连接符",
              value: "0"
            },
            {
              label: "斜线",
              value: "1"
            },
            {
              label: "短横线",
              value: "2"
            },
            {
              label: "下划线",
              value: "3"
            }
          ],
        },
        {
          label: "顺序",
          name: 'order',
          type: 'select',
          default: "1",
          required: true,
          options: [
            {
              label: "开头字母+日期+流水号",
              value: "1"
            },
            {
              label: "开头字母+流水号+日期",
              value: "2"
            },
            {
              label: "日期+开头字母+流水号",
              value: "3"
            },
            {
              label: "日期+流水号+开头字母",
              value: "4"
            },
            {
              label: "流水号+开头字母+日期",
              value: "5"
            },
            {
              label: "流水号+日期+开头字母",
              value: "6"
            }
          ], 
        }
      ]
    }
  },
}
</script>